import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'

import Add from '../views/Add.vue'
import Show from '../views/Show.vue'
import Update from '../views/Update.vue'

const routes: Array<RouteRecordRaw> = [
    {
        path: '/',
        name: 'Add',
        component: Add
    },
    {
        path: '/Show',
        name: 'Show',
        component: Show
    },
    {
        path: '/Update/:Id',
        name: 'Update',
        component: Update
    }
]

const router = createRouter({
    history: createWebHistory(),
    routes
})
export default router